<!--
描述：人员管理-学生维护组件
开发人：fj
开发日期：2017年8月22日
-->
<template lang="pug">
    keep-alive
        kalix-table(bizKey="hardwareconfigure" title='系统配置列表' v-bind:targetURL="targetURL"
        v-bind:btnList="btnList" v-bind:toolbarBtnList="toolbarBtnList" v-bind:bizDialog="bizDialog"
        v-bind:isExpandAll="isExpandAll")
            template(slot="tableColumnSlot")
                el-table-column(type="expand")
                    template(slot-scope="scope")
                        el-form(label-position="left" class="demo-table-expand")
                            el-form-item(v-for="item in scope.row.configBean" v-bind:key="item.name" v-bind:label="item.name")
                                span {{item.value}}
                el-table-column(prop="classType" label="类型"  align="center")
</template>

<script type="text/ecmascript-6">
    import {configAdminURL, configName, ConfigToolbarList} from '../../config.toml'

    export default {
      name: 'kalix-admin-config',
      data() {
        return {
          btnList: ConfigToolbarList,
          toolbarBtnList: [
            {id: 'add', isShow: false}
          ],
          targetURL: configAdminURL + '?configName=' + configName,
          bizDialog: [
            {id: 'edit', dialog: 'AdminConfigureView'}
          ],
          isExpandAll: true
        }
      },
      created() {
      },
      mounted() {
      },
      activated() {
      },
      deactivated() {
      },
      methods: {}
    }
</script>

<style scoped lang="stylus">
    .demo-table-expand
        label
            width 90px
            color #99a9bf
        .el-form-item
            margin-bottom 0
</style>
